package com.itheima.reggie.service;

import com.itheima.reggie.dto.DishDto;
import com.itheima.reggie.entity.Dish;
import com.itheima.reggie.entity.Page;

import java.util.List;

public interface DishService {
    boolean save(DishDto dishDto);

    //夺表连接分页查询
    Page<DishDto> findPage2(Integer page , Integer pageSize, String name);
    //根据id查一个菜品
    DishDto findById(Long id);

    //根据别类id查询菜品
    List<Dish>findByCategoryId(Long categoryId);

    List<DishDto>findByCategoryId(Long categoryId,Integer status);


}
